<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller{
	private  function checkLog(){
		if(!session("?admin_name")){
			$this->error('无权限访问此页',U('Home/Index/index'));
		}
	}
	public function _initialize(){
		if(ACTION_NAME!='checkLogin' && ACTION_NAME!='login'){
			$this->checkLog();
		} 
	}
}
?>